package business.other.punish.impl;

import business.other.punish.NewPunishInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import other.domain.NewPunishInfo;
import other.domain.NewPunishInfoCriteria;
import other.mapper.NewPunishInfoMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "newPunishService")
public class NewPunishInfoServiceImpl implements NewPunishInfoService{
    @Autowired
    NewPunishInfoMapper newPunishInfoMapper;
    @Override
    public List<NewPunishInfo> getNewPunishInfo() {
        NewPunishInfoCriteria criteria =new NewPunishInfoCriteria();
        criteria.createCriteria().getAllCriteria();
        return newPunishInfoMapper.selectByExample(criteria);
    }
}

